package com.itheima.tlias.service;

import com.itheima.tlias.dto.ReportDegreeCountDTO;
import com.itheima.tlias.entity.Student;
import com.itheima.tlias.po.InsertStudentParam;
import com.itheima.tlias.po.SelectStudentPageParam;
import com.itheima.tlias.util.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {

    ResultUtil selectStudentByPage(@Param("p") SelectStudentPageParam param);

    int insertStudent(@Param("p") InsertStudentParam param);

    int batchDeleteStudent(@Param("ids") List<Integer> ids);

    Student selectStudentById(@Param("id")Integer id);

    int updateStudent(@Param("p") Student param);

    int updateViolation(Integer id,Integer score);

    List<ReportDegreeCountDTO> studentDegreeData();

    ResultUtil studentCountData();
}
